package com.baor.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baor.domain.ClassVo;
import com.baor.domain.RoleVo;
import com.baor.domain.SubjectVo;
import com.baor.domain.TeacherVo;
import org.springframework.stereotype.Component;

import java.util.List;
import java.util.Map;

@Component
public interface TeacherDao extends BaseMapper<TeacherVo> {

    List<TeacherVo> teacherList(Map<String,Object> map);

    int pageCount(Map<String,Object> map);

    TeacherVo teacherInfo(Map<String,Object> teacherId);

    List<ClassVo> classSelect();

    List<SubjectVo> subjectSelect();

    List<RoleVo> roleSelect();

    Integer addClass(Map<String,Object> map);

    Integer deleteClass(int teacherId);

    Integer subject(int teacherId);

    Integer updateSubject(int teacherId, int subjectId);


}
